package com.gues.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gues.eneity.Article;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ArticleMapper extends BaseMapper<Article> {
    int insertArticle(Article article);

    Integer selectArticleId(String title);

    List<Article> selectAllArticle();

    Article getArticleById(Integer id);

    void updateView(Integer viewNum, Integer id);
}
